/*=+--+=#=+--     Unmanned Aerial System Management Software      --+=#=+--+=#*\
|          Copyright (C) 2011 Regents of the University of Colorado.           |
|                             All Rights Reserved.                             |

     This program is free software: you can redistribute it and/or modify
     it under the terms of the GNU General Public License version 2 as
     published by the Free Software Foundation.

     This program is distributed in the hope that it will be useful,
     but WITHOUT ANY WARRANTY; without even the implied warranty of
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     GNU General Public License for more details.

     You should have received a copy of the GNU General Public License
     along with this program.  If not, see <http://www.gnu.org/licenses/>.

            Jack Elston                       Cory Dixon                        
|           elstonj@colorado.edu              dixonc@colorado.edu              |
|                                                                              |
\*=+--+=#=+--                 --+=#=+--+=#=+--                    --+=#=+--+=#*/

/***********************************************************************
 *
 * FILENAME:
 * vcConfig.h
 *
 * PURPOSE:
 *   Functional interfaces to configure the VC.
 *
 * CREATED:
 * 02/2005 by Cory Dixon
 *
 * LAST MODIFIED:
 * $Author: dixonc $
 * $Date: 2005/07/13 20:34:40 $
 * $Revision: 1.2 $
 *
 ***********************************************************************/

#ifndef _G_CONFIG_H
#define _G_CONFIG_H

#include "String.h"
#include "myStripChart.h"
#include "gtkMap.h"
#include "vcgui3.h"
#include "utilities.h"

#define VCGUI_DIR  "/opt/netuas"

typedef struct _GuiConfig
{
	// Main window
	int        width;
	int        height;

	// gps map
	GList      *map_files;
	GPSMap     *gpsmap;

	// configuration files
	String glade_file;         // "vcgui3.xml"
	String menu_ui_file;       // "vcgui3_menu_ui.xml";
	String node_ui_file;       // "node_window.xml";
	String radar_station_file; // "nexrad-stations.txt";

	UnitSystem_t units;
} GuiConfig;

typedef struct _GuiStruct {
	ShmStruct    * shm_ptr;
	VCGUI        * vcgui;
	GConfClient  * client;
	GtkBuilder   * builder;
	GtkWidget    * main_window;
	GuiConfig      config;
} GuiStruct;


void vc_config_init(int argc, char * argv[]);
void vc_config_free ();
void vc_config_save ();
void vc_config_save_chart( GtkStripChart * g) ;

void setColor(GtkWidget *widget);

#endif// _G_CONFIG_H
